package com.gsmr.service.impl;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gsmr.dao.FrontProcessorInfoDao;
import com.gsmr.entity.FrontProcessorState;
import com.gsmr.entity.FrontProcessorInfo;
import com.gsmr.entity.User;
import com.gsmr.service.FrontProcessorInfoService;
import com.gsmr.service.FrontProcessorInfoService;

/**
 * 用户Service实现类
 * @author frontProcessorInfo
 *
 */
@Service("frontProcessorInfoService")
public class FrontProcessorInfoServiceImpl implements FrontProcessorInfoService{

	@Resource
	private FrontProcessorInfoDao frontProcessorInfoDao;
	

	public List<FrontProcessorInfo> find(Map<String, Object> map) {
		return frontProcessorInfoDao.find(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return frontProcessorInfoDao.getTotal(map);
	}

	public int add_batch(Map<String, Object> map) {
		return frontProcessorInfoDao.add_batch(map);
	}

	public int delete(Map<String, Object> map) {
		return frontProcessorInfoDao.delete(map);
	}

	public FrontProcessorInfo findByFrontProcessorId(Map<String, Object> map) {
		return frontProcessorInfoDao.findByFrontProcessorId(map);
	}

	public int update(Map<String, Object> map) {
		return frontProcessorInfoDao.update(map);
	}
	
	public List<FrontProcessorInfo> findFrontProcessorIdAndSiteName(Map<String, Object> map) {
		return frontProcessorInfoDao.findFrontProcessorIdAndSiteName(map);
	}

}
